<template>
	<view>
		订单详情展示页
		<uni-view data-v-6059f4d3="" class="margin-tb-sm text-center" >

			<view  @click="payNow"><uni-button data-v-6059f4d3="" class="cu-btn round bg-red">立即支付</uni-button></view>
			<view @click="later"><uni-button data-v-6059f4d3="" class="cu-btn round bg-red" >再逛逛</uni-button></view>
		</uni-view>
	</view>
</template>

<script>
	export default {
		onLoad(){
			this.temporaryId = uni.getStorageSync("tKey").data;
			console.log(this.temporaryId)
		},
		data() {
			return {
				temporaryId: []
			}
		},
		methods: {
			payNow(){
				this.$req.pay(this.temporaryId).then(res => {
					uni.showToast({
						title:"支付完成返回首页"	
					}),
					uni.removeStorageSync("tKey"),
					uni.switchTab({
						url:'../showGoods'
					})
				})
			},
			later(){
				console.log(1)
				uni.switchTab({
					url:"../showGoods"
				})
			}
		}
	}
</script>

<style>

</style>
